package com.library.service;

import java.util.List;

import com.library.bean.Book;
import com.library.dao.BookDAO;

public class BookService {
	BookDAO bookDAO = new BookDAO();
	
	public boolean addBook(Book book) {
		return bookDAO.addBook(book);
	}
	
	public List<Book> listBook(){

		return bookDAO.listByAll();
	}
	
}
